package com.szecsenyi.patterns.strategy.duck;

import com.szecsenyi.patterns.strategy.behaviour.FlyBehaviour;

public abstract class GeneralDuck {
	protected FlyBehaviour flyBehaviour;
	public GeneralDuck(){
		
	}
	public abstract void swim();
	public void performFly(){
		flyBehaviour.fly();
	}
	
	public void setFlyBehaviour(FlyBehaviour flyBehaviour) {
		this.flyBehaviour = flyBehaviour;
	}
	
}
